﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace CPPProject.CPP.Dto
{
    [AutoMapFrom(typeof(CPPCategory))]
    public class CPPCategoryDto : EntityDto<int>
    {
        /// <summary>
        /// 所属公司
        /// </summary>
        public long CompanyId { get; set; }
        public DateTime CreationTime { get; set; }
        /// <summary>
        /// 分类名
        /// </summary>
        [Required, MaxLength(50)]
        public string CategoryName { get; set; }
        /// <summary>
        /// 分类索引
        /// </summary>
        [Required, MaxLength(50)]
        public string CategoryIndex { get; set; }
        /// <summary>
        /// 所属版块
        /// </summary>
        [Required, MaxLength(50)]
        public string Layout { get; set; }
        /// <summary>
        /// 父级ID
        /// </summary>
        public int ParentId { get; set; }
        /// <summary>
        /// 子集数量
        /// </summary>
        public int Childs { get; set; }
        /// <summary>
        /// 层级
        /// </summary>
        public int Level { get; set; }
        /// <summary>
        /// 隐藏
        /// </summary>
        public bool IsHide { get; set; }
        /// <summary>
        /// 图标
        /// </summary>
        [MaxLength(50)]
        public string Icons { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [MaxLength(500)]
        public string Remark { get; set; }

        public bool IsDeleted { get; set; }
        /// <summary>
        /// 排序序号
        /// </summary>
        public int OrderId { get; set; }
        /// <summary>
        /// 推荐
        /// <summary>
        public bool IsRec { get; set; }
    }
}
